package com.xbongbong.pro.template.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 批量更新表单
 */
@Data
public class ListTemplateSortDTO extends BaseDTO {

    private static final long serialVersionUID = -8566119627858904259L;

    /**
     * saas标记(预留字段)
     */
    private Integer saasMark;

    @NotNull(message = "请选择需要修改展示顺序的表单模板")
    @Size(min = 1, message = "更新的表单数量至少为1")
    private List<TemplateSortDTO> formList;

}
